package com.yunqing.restkeeper.shop.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName BaseShopEntity
 * @Description TODO
 * @author: puyunqing
 * @Date: 2025/6/30
 */
@Data
public class BaseShopEntity {

    @Schema(name = "最后更新时间")
    @TableField(value = "last_update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastUpdateTime;

    @JsonIgnore
    @Schema(name = "是否删除 1是删除 0 未删除")
    @TableLogic
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @JsonIgnore
    @Schema(name = "所属商户id")
    @TableField(value = "shop_id")
    private String shopId;

}
